﻿<?php
include 'header.php';
include 'fun.php';
if(isset($_GET['hang'])){
    $hang=$_GET['hang'];
}
else{
  $hang=1;  
}
if(isset($_GET['page'])){
    $page=$_GET['page'];
}
else{
    $page=1;
}

if(isset($_GET['id'])){
    $id=$_GET['id'];
}
else{
    $id='我';
}
$count=($page-1)*20+$hang;
if($id!='我'){
$sql="select * from jianli where department='$id'";
$re=getarr($sql);
}
else {
  
    $sql="select * from jianli ";
    $re=getarr($sql);

}

$name=$re[$count]['name'];
$department=$re[$count]['department'];
$class=$re[$count]['class'];
$college=$re[$count]['college'];
$phone=$re[$count]['phone'];
$email=$re[$count]['email'];
$introduction=$re[$count]['introduction'];

?>

<div id="part">

	<div>
		<table id="part" >
			<tr>
				<td >姓名:</td>
				<td ><input name="name" type="text" value=<?php echo $name?> ></td>
			</tr>
			<tr>
				<td>面试部门:</td>
				<td><input name="department" type="text" value=<?php echo $department?>></td>
			</tr>
			<tr>
				<td>年级:</td>
				<td><input name="class" type="text" value=<?php echo $class?>></td>
			</tr>
			<tr>
				<td>所在学院:</td>
				<td><input name="college" type="text" value=<?php echo $college?>></td>
			</tr>
			<tr>
				<td>电话号码:</td>
				<td><input name="phone" type="text" value=<?php echo $phone?>></td>
			</tr>
			<tr>
				<td>邮箱:</td>
				<td><input name="email" type="text" value=<?php echo $college?>></td>
			</tr>
		</table>
		</div>
		<div>
			简介:
			<textarea name="introduction" rows="6px" cols="45px"><?php echo $introduction?></textarea>
		</div>
	  <a href="operation2.php?id=<?php echo $id?>">	<input name="submit" type="submit" value=" 返回"
				style="width: 100px; height: 60px; font-size: 25px" /></a>
</div>
